../../../../../../lib/+mp/sm_quad_cost_legacy.m